package com.aefan.springcloud.alibaba.service;

import com.aefan.springcloud.alibaba.dao.StorageDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author: jxl
 * @Date: 2021/9/21 下午10:08
 */
@Service
public class StorageServiceImpl implements StorageService {

    @Resource
    private StorageDao storageDao;

    @Override
    public void decrease(Long productId, Integer count) {
        storageDao.decrease(productId, count);
    }
}
